package com.czn.shopdemo.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @author Zenan Chen
 * @date 2023/4/6 9:22
 */
@Data
@TableName(value = "t_shop_demo_order_item")
@EqualsAndHashCode(callSuper = false)
public class OrderItem extends BaseEntity {

    @ApiModelProperty(value = "购物车记录id", example = "ada")
    @TableField("cart_id")
    private String cartId;

    @ApiModelProperty(value = "订单id", example = "123")
    @TableField("order_id")
    private String orderId;

    @ApiModelProperty(value = "商品id", example = "345")
    @TableField("goods_id")
    private String goodsId;

    @ApiModelProperty(value = "商品数量", example = "5",hidden = true)
    @TableField("count")
    private Long count;

    @ApiModelProperty(value = "商品总价", example = "123.456",hidden = true)
    @TableField("price")
    private Double price;


}
